package cn.sdhuijin.vms.sms.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import cn.sdhuijin.vms.sms.util.SmsUtil;

@Component
public class MoneyTask {
	static final Logger logger = LoggerFactory.getLogger(MoneyTask.class);

	@Scheduled(cron = "0 0 8 * * ?")
	// 每天8点触发
	// @Scheduled(cron="0 0/5 *  * * ? ")
	public void chekMoney() {
		logger.info("执行话费查询。");
		SmsUtil.sendMessage("10010", "102");
	}
}
